#ifndef OPTIONSDIALOG_H
#define OPTIONSDIALOG_H

#include <QDialog>
#include <QSettings>
#include <QTreeWidgetItem>

#include "addruledialog.h"

namespace Ui {
    class optionsDialog;
}

class optionsDialog : public QDialog {
    Q_OBJECT
public:
    optionsDialog(QWidget *parent = 0);
    ~optionsDialog();

    void run_form();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::optionsDialog *ui;

private slots:
    void on_modifyButton_clicked();
    void on_addButton_clicked();
    void on_removeButton_clicked();
    void on_autoCleanupCheck_stateChanged(int );
    void on_saveButton_clicked();

    QString getRules() const;
    void setParameters();
};

#endif // OPTIONSDIALOG_H
